package com.it.zhangjun.design.pattern.decorator;

/**
 * @className: CheckedBagDecorator
 * @description: 防伪装饰器
 * @author: z00018123
 * @date: 2021/4/30
 **/
public class CheckedBagDecorator extends BagDecorator {

    public CheckedBagDecorator(Bag bag) {
        super(bag);
    }

    @Override
    public void pack() {
        super.pack();
        //打印防伪标识
        checked();
    }

    //增加防伪标识
    public void checked() {
        System.out.println("===============");
        System.out.println("打印上防伪标识");
    }
}
